package com.wyc.service.mode.proxy;

/**
* 代理模式（委托模式）
*/
public class demo2 {
    public static void main(String[] args) {
        GamePlayer gamePlayer = new GamePlayer("youxi");
        IGamePlayer proxy = new GamePlayerProxy(gamePlayer);
        proxy.login("zhang","1");
        proxy.killBoss();
        proxy.upgrade();
    }
}
